package com.example.online_order.service;

import com.example.online_order.pojo.AdminAccount;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface AdminAcountService {



    public Integer addAdmin(AdminAccount account);

    public Integer deleteAdmin(Integer id);


    public Integer updateAdmin(AdminAccount account);


    public List<AdminAccount> getAllAdmin();


    public AdminAccount findAdminByUsername(String username);


    public AdminAccount findAdminLikeUsername(String username);

    public AdminAccount Login(AdminAccount account);

    Integer updateAdminpassword(AdminAccount account);
}
